package com.group.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.group.order.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "order_list")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "order_list")
public class OrderList {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**
     * 订单编号
     */
    @TableField(value = "`number`")
    @ApiModelProperty(value = "订单编号")
    private Long number;

    /**
     * 订单状态
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "订单状态")
    private OrderStatusEnum status;

    /**
     * 下单人id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "下单人id")
    private Integer userId;

    /**
     * 应付金额
     */
    @TableField(value = "money")
    @ApiModelProperty(value = "应付金额")
    private BigDecimal money;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 付款时间
     */
    @TableField(value = "pay_time")
    @ApiModelProperty(value = "付款时间")
    private Date payTime;

    /**
     * 支付方式
     */
    @TableField(value = "pay_method")
    @ApiModelProperty(value = "支付方式")
    private Byte payMethod;

    /**
     * 软删除键
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value = "软删除键")
    private String isDelete;
}